package com.dongdongshop.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.dongdongshop.pojo.TbSeller;
import com.dongdongshop.service.SellerService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("seller1controller")
public class Seller1Controller {
    @Reference
    private SellerService sellerService;
    @RequestMapping("toseller1")
    public String toSeller(String name, String nickName, Model model){
        //查询所有
        List<TbSeller> list = sellerService.findAll(name,nickName);
        model.addAttribute("list",list);
        return "admin/seller_1";
    }
}
